import { RoutesAlias } from '@/router/routesAlias'
import { AppRouteRecord } from '@/types/router'

const meta = {}

const pre = 'chengBenGuanLi-'

export default {
  path: '/chengBenGuanLi',
  name: 'chengBenGuanLi',
  redirect: {
    name: `${pre}chengBenHeSuan`
  },
  meta: { ...meta, title: '成本管理' },
  component: RoutesAlias.Home,
  children: [
    {
      path: 'chengBenHeSuan',
      name: '31200',
      meta: {
        ...meta,
        title: '成本核算'
      }
      // component: () => import('@/pages/chengBenGuanLi/chengBenHeSuan')
    },
    {
      path: 'chengBenFenXi',
      name: '31100',
      meta: {
        ...meta,
        title: '成本分析'
      }
      // component: () => import('@/pages/chengBenGuanLi/chengBenFenXi')
    },
    {
      path: 'shuJuWeiHu',
      name: '31300',
      meta: {
        ...meta,
        title: '数据维护'
      }
      // component: () => import('@/pages/chengBenGuanLi/shuJuWeiHu')
    },
    {
      path: 'dunShaChengBenRiBao',
      name: '33000',
      meta: {
        ...meta,
        title: '吨纱成本日报'
      }
      // component: () => import('@/pages/chengBenGuanLi/dunShaChengBenRiBao')
    },
    {
      path: 'fenPingZhongGongZi',
      name: '315000',
      meta: {
        ...meta,
        title: '分品种工资'
      }
      // component: () => import('@/pages/chengBenGuanLi/fenPingZhongGongZi')
    },
    {
      path: 'fenPingZhongRenGong',
      name: '34000',
      meta: {
        ...meta,
        title: '分品种人工'
      }
      // component: () => import('@/pages/chengBenGuanLi/fenPingZhongRenGong')
    },
    {
      path: 'zuoYeZhongXin',
      name: '35000',
      meta: {
        ...meta,
        title: '作业中心'
      }
      // component: () => import('@/pages/chengBenGuanLi/zuoYeZhongXin')
    },
    {
      path: 'fuLiFei',
      name: '36000',
      meta: {
        ...meta,
        title: '福利费'
      }
      // component: () => import('@/pages/chengBenGuanLi/fuLiFei')
    },
    {
      path: 'zhengQiFeiYong',
      name: '37000',
      meta: {
        ...meta,
        title: '气费'
      }
      // component: () => import('@/pages/chengBenGuanLi/zhengQiFeiYong')
    },
    {
      path: 'shuiFei',
      name: '38000',
      meta: {
        ...meta,
        title: '水费'
      }
      // component: () => import('@/pages/chengBenGuanLi/shuiFei')
    },
    {
      path: 'zeJiuFeiYong',
      name: '310000',
      meta: {
        ...meta,
        title: '折旧费用'
      }
      // component: () => import('@/pages/chengBenGuanLi/zeJiuFeiYong')
    },
    {
      path: 'gongZi',
      name: '311000',
      meta: {
        ...meta,
        title: '工资'
      }
      // component: () => import('@/pages/chengBenGuanLi/gongZi')
    },
    {
      path: 'dunShaChengBenYueBao',
      name: '314000',
      meta: {
        ...meta,
        title: '吨纱成本月报'
      }
      // component: () => import('@/pages/chengBenGuanLi/dunShaChengBenYueBao')
    },
    {
      path: 'jiWuLiaoFeiYong/jiWuLiaoYueBao',
      name: '39100',
      meta: {
        ...meta,
        title: '机物料月报'
      }
      // component: () => import('@/pages/chengBenGuanLi/jiWuLiaoFeiYong/jiWuLiaoYueBao')
    },
    {
      path: 'jiWuLiaoFeiYong/jiWuLiaoLingYongDengJi',
      name: '39200',
      meta: {
        ...meta,
        title: '机物料领用登记'
      }
      // component: () => import('@/pages/chengBenGuanLi/jiWuLiaoFeiYong/jiWuLiaoLingYongDengJi')
    },
    {
      path: 'jiWuLiaoFeiYong/xiuLiFeiDengJi',
      name: '39300',
      meta: {
        ...meta,
        title: '修理费登记'
      }
      // component: () => import('@/pages/chengBenGuanLi/jiWuLiaoFeiYong/xiuLiFeiDengJi')
    },
    {
      path: 'jiWuLiaoFeiYong/wuLiaoJiChuWeiHu',
      name: '39400',
      meta: {
        ...meta,
        title: '物料基础维护'
      }
      // component: () => import('@/pages/chengBenGuanLi/jiWuLiaoFeiYong/wuLiaoJiChuWeiHu')
    },
    {
      path: 'baoZhuangFeiYong/baoZhuangFeiMingXi',
      name: '312000',
      meta: {
        ...meta,
        title: '包装费明细'
      }
      // component: () => import('@/pages/chengBenGuanLi/baoZhuangFeiYong/baoZhuangFeiMingXi')
    },
    {
      path: 'baoZhuangFeiYong/baoZhuangLiaoGuanLi',
      name: '312000',
      meta: {
        ...meta,
        title: '包装料管理'
      }
      // component: () => import('@/pages/chengBenGuanLi/baoZhuangFeiYong/baoZhuangLiaoGuanLi')
    },
    {
      path: 'yongDianFeiYong/meiRiYongDian',
      name: '313000',
      meta: {
        ...meta,
        title: '每日电量'
      }
      // component: () => import('@/pages/chengBenGuanLi/yongDianFeiYong/meiRiYongDian')
    },
    {
      path: 'yongDianFeiYong/dianFeiDengJi',
      name: '313000',
      meta: {
        ...meta,
        title: '电费登记'
      }
      // component: () => import('@/pages/chengBenGuanLi/yongDianFeiYong/dianFeiDengJi')
    }
  ]
} as AppRouteRecord
